package com.paiai.lslease.dao.appuser;

import com.paiai.lslease.auto.model.AppSysUser;

import java.sql.SQLException;

public interface AppSysUserInfoDAO {

    /**
     * 根据用户ID获取用户详情
     */
    AppSysUser getAppSysUserInfoById(int userId) throws SQLException;

    /**
     * 根据手机号码获取用户详情
     */
    AppSysUser getAppSysUserInfoByMobile(String mobile) throws SQLException;

    /**
     * 根据微信openid获取用户详情
     */
    AppSysUser getAppSysUserInfoByWechatOpenId(String wechatOpenId) throws SQLException;

    /**
     * 查询最新的系统用户的ID
     */
    int selectNeweastAppSysUserId() throws SQLException;
}
